//
//  MatchObj.h
//  MathSpeed
//
//  Created by ToanTM on 5/17/14.
//
//

#ifndef __MathSpeed__MatchObj__
#define __MathSpeed__MatchObj__

#include <iostream>
#include <cocos2d.h>
#include "GameMode.h"

USING_NS_CC;

class MathObj : public CCObject {
private:
    void resetValueForHardMode();
    void resetValueForNormalMode();
    void resetValueForEasyMode();
public:
    typedef enum{
        ADDITION = 0, SUBTRACTION = 1, MULTIPLICATION = 2, DIVISION = 3
    }MatchOperator;
    
    int paramLeft, paramRight, result;
    MatchOperator matchOperator;
    GameMode::GamePlayMode gameMode;
    bool isRight;
    
    // method
    virtual bool init();
    CREATE_FUNC(MathObj);
    static MathObj* create(GameMode::GamePlayMode gameMode);
    void resetValue();
    const char* getStringMatchOperator();
};

#endif /* defined(__MathSpeed__MatchObj__) */
